﻿@model Adams.Web.Models.Events.Occurance.PageLoad
@{
    Layout = "~/Views/Shared/_AppLayout.Mobile.cshtml";
}
@section Head{
}
@section Scripts {
}
<h1>@Model.Occurance.Title</h1>
@if (Adams.Shared.DateHelper.DiffDays(Model.Occurance.StartDate, Model.Occurance.EndDate) == 0)
{
    if (Model.Occurance.IsAllDay)
    {
        <text>@Model.Occurance.StartDate.ToShortDateString()</text>
    }
    else
    {
        <text>@Model.Occurance.StartDate.ToShortDateString() @Model.Occurance.StartDate.ToShortTimeString() - @Model.Occurance.EndDate.ToShortTimeString()</text>
    }
}
else
{
    if (Model.Occurance.IsAllDay)
    {
            <text>@Model.Occurance.StartDate.ToShortDateString() to @Model.Occurance.EndDate.ToShortDateString()</text>
    }
    else
    {
            <text>@Model.Occurance.StartDate.ToShortDateString() @Model.Occurance.StartDate.ToShortTimeString() to @Model.Occurance.EndDate.ToShortDateString() @Model.Occurance.EndDate.ToShortTimeString()</text>
    }
}
<br />@Model.Occurance.ShortDescription
<br />@Html.Raw(Model.Occurance.Description)
